<!-- box login --> 
<?php $this->renderPartial("application.views.layouts._menu");?>
<!-- end box login -->
<div class="about">
    <?php $this->widget("BoxLogin");?>
    <form action="<?php echo $upload_type==0? Url::createUrl("service/uploadFileApk") : Url::createUrl("service/uploadLinkApk") ?>" method="post" enctype="multipart/form-data">
        <h1><a><img class="kc_TB_td" alt="" src="<?php echo Yii::app()->params['static_url'];?>images/tenweb-icon-Upload.png"></a><a class="xanhdam" href="#">Upload File</a>
        </h1>     
        <?php if(!empty($error)) { ?>
            <div class="APK">
                <p class="do"><strong>Thông báo:</strong> <?php echo $error;?></p>
            </div>
            <?php } ?>
        <div class="APK">
            <?php for($i=1;$i<=$totalfile;$i++) {
                    if($upload_type==0){
                    ?>
                    <p><strong><label for="file">File <?php echo $i; ?>:</label></strong>
                        <input class="onhap_TT" type="file" style="margin:0 0 -5px 57px;height: 25px;width: 18%;" name="userfile[]" id="file" style="height:auto"   ></p>
                    <br>  
                    <?php }else { ?>
                    <p><strong>Link <?php echo $i; ?>:</strong>
                        <input class="onhap_TT" type="text" style="margin:0 0 -5px 52px;height: 25px;width: 30%;" name="link[]" id="link" style="height:auto"   ></p>
                    <br>
                    <?php } ?>
                <?php } ?> 
              <input type="hidden" name="price" value="<?php if(isset($price)){echo $price;} ?>">  
              <input type="hidden" name="timeTrail" value="<?php if(isset($timeTrail)){echo $timeTrail;} ?>">
              <input type="hidden" name="countTrail" value="<?php if(isset($countTrail)){echo $countTrail;} ?>"> 
              <input type="hidden" name="timeSms" value="<?php if(isset($timeSms)){echo $timeSms;} ?>"> 
              <input type="hidden" name="countSms" value="<?php if(isset($countSms)){echo $countSms;} ?>"> 
              <input type="hidden" name="isSms" value="<?php if(isset($isSms)){echo $isSms;} ?>"> 
              <input type="hidden" name="isPriceDown" value="<?php if(isset($isPriceDown)){echo $isPriceDown;} ?>"> 
              <input type="hidden" name="upload_type" value="<?php if(isset($upload_type)){echo $upload_type;} ?>"> 
              <input type="hidden" name="totalfile" value="<?php if(isset($totalfile)){echo $totalfile;} ?>"> 
              
            <strong>Mã xác thực</strong><input type="text" name="code" style="margin:0 0 0 20px;" class="onhap_APK" size="15" maxlength="50" name="a"> 
        <img width="91" height="22" alt="" src="<?php echo Url::createUrl("/captcha/index");?>"> </div>
        <div class="Tma_8">
            <input type="submit" class="button_DNHT_1" value="Gắn Thanh Toán">
            <a class="button_DNHT_2" href="<?php echo Url::createUrl("service/attachPaymentApkOption") ?>">Làm Lại</a>
        </div>
    </form>
    <!-- box footer -->
    <?php $this->widget("BoxFooter");?>
    <!-- end box footer -->   
  </div>